<!DOCTYPE html>
<!-- saved from url=(0099)http://people.csail.mit.edu/dnj/teaching/6170/javascript-live/modules/functions/code/evalorder.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="../editor/codestyles.css">
    <script src="../editor/codeeditor.js"></script>
     
    <style>
    canvas {position: absolute; left: 580px; top: 67px}
    </style>    
</head>
<body>

<div id="buttons">
	<input type="submit" value="run" id="runIntro" onclick="slide.runCode();">
	<input type="submit" value="clear output" id="clearOutput" onclick="clearOutputBox();">
	<input type="submit" value="revert" id="reloadCode" onclick="location.reload();">
</div>

<canvas id="canvas" height="200" width="200"></canvas>

<!-- <script>
seq = function () {return (seq.c = seq.next(seq.c));}
seq.c = 0;
seq.next = function (i) {return i + 1;};
</script> -->

<textarea id="code" name="code" style="display: none;">
seq = function () {return (seq.c = seq.next(seq.c));}
seq.c = 0;
seq.next = function (i) {return i + 1;};

log = function (s) { console.log(s + seq());};
(function () {log('c')}) (log('a'),log('b'));	//先求值参数
(function(){})()  // 空函数 no op</textarea><div class="CodeMirror"><div style="overflow: hidden; position: relative; width: 3px; height: 0px;"><textarea style="position: absolute; padding: 0; width: 1px; height: 1em" wrap="off" autocorrect="off" autocapitalize="off"></textarea></div><div class="CodeMirror-scroll cm-s-default" tabindex="-1"><div style="position: relative"><div style="position: relative"><div class="CodeMirror-gutter" style="height: 0px;"><div class="CodeMirror-gutter-text"><pre>1</pre></div></div><div class="CodeMirror-lines"><div style="position: relative; z-index: 0; outline: none; margin-left: 0px;"><div style="position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden; outline: 5px auto none"><pre><span>x</span></pre></div><pre class="CodeMirror-cursor">&nbsp;</pre><div style="position: relative; z-index: -1"></div><div></div></div></div></div></div></div></div>
<div id="output"><i>Output</i></div>


</body></html>